package com.ricchieri.service;

import java.io.Serializable;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.IOperationTotalAmountDao;
import com.ricchieri.filter.OperationTotalAmountFilter;
import com.ricchieri.model.OperationTotalAmount;
import com.ricchieri.service.interf.IOperationTotalAmountService;

@Transactional(readOnly = true)
public class OperationTotalAmountService implements IOperationTotalAmountService, Serializable {
	private static final long serialVersionUID = -1633622792643498186L;

	IOperationTotalAmountDao operationTotalAmountDao; 
	
	@Override
	public OperationTotalAmount getOperationTotalAmountById(
			OperationTotalAmountFilter operation) {
		return operationTotalAmountDao.getOperationTotalAmountById(operation);
	}

	@Override
	@Transactional(readOnly = false)
	public void updateOperationTotalAmount(
			OperationTotalAmount operationTotalAmount) {
		operationTotalAmountDao.update(operationTotalAmount);
	}

	public IOperationTotalAmountDao getOperationTotalAmountDao() {
		return operationTotalAmountDao;
	}

	public void setOperationTotalAmountDao(
			IOperationTotalAmountDao operationTotalAmountDao) {
		this.operationTotalAmountDao = operationTotalAmountDao;
	}
}